﻿<Application x:Class="Rio.Application.RioWeb.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:applicationServices="clr-namespace:System.ServiceModel.DomainServices.Client.ApplicationServices;assembly=System.ServiceModel.DomainServices.Client.Web"
             xmlns:context="clr-namespace:Rio.Framework.Pages.AppCode.Context;assembly=Rio.Framework.Pages"
             xmlns:localContext="clr-namespace:Rio.Application.RioWeb.Common.Context">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Assets/Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <context:ApplicationContext ApplicationContextLoaded="ApplicationContextLoaded" />
        <localContext:WebContext>
            <localContext:WebContext.Authentication>
                <applicationServices:FormsAuthentication />
            </localContext:WebContext.Authentication>
        </localContext:WebContext>
    </Application.ApplicationLifetimeObjects>

</Application>